<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">

  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <meta name="description" content="Neon Admin Panel" />
  <meta name="author" content="" />

  <title>润龙国际 | 忘记密码</title>

  <link rel="stylesheet" href="__PUBLIC__/assets/js/jquery-ui/css/no-theme/jquery-ui-1.10.3.custom.min.css">
  <link rel="stylesheet" href="__PUBLIC__/assets/css/font-icons/entypo/css/entypo.css">
  <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Noto+Sans:400,700,400italic">
  <link rel="stylesheet" href="__PUBLIC__/assets/css/bootstrap.css">
  <link rel="stylesheet" href="__PUBLIC__/assets/css/neon-core.css">
  <link rel="stylesheet" href="__PUBLIC__/assets/css/neon-theme.css">
  <link rel="stylesheet" href="__PUBLIC__/assets/css/neon-forms.css">
  <link rel="stylesheet" href="__PUBLIC__/assets/css/custom.css">

  <script src="__PUBLIC__/assets/js/jquery-1.11.0.min.js"></script>
  <script>$.noConflict();</script>

  <!--[if lt IE 9]><script src="__PUBLIC__/assets/js/ie8-responsive-file-warning.js"></script><![endif]-->

  <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
  <![endif]-->


</head>
<body class="page-body login-page login-form-fall" data-url="http://neon.dev">


<!-- This is needed when you send requests via Ajax -->
<script type="text/javascript">
var baseurl = '';
</script>
  
<div class="login-container">
  
  <div class="login-header login-caret">
    
    <div class="login-content">
      
      <a href="index.html" class="logo">
        <img src="__PUBLIC__/assets/images/logo@2x.png" width="120" alt="" />
      </a>
      
      <p class="description">找回密码</p>
      
      <!-- progress bar indicator -->
      <div class="login-progressbar-indicator">
        <h3>43%</h3>
        <span>验证中...</span>
      </div>
    </div>
    
  </div>
  
  <div class="login-progressbar">
    <div></div>
  </div>
  
  <div class="login-form">
    
    <div class="login-content">
      
      <form method="post" role="form" id="form_fogetpass">
        
        <div class="form-register-success">
          <i class="entypo-check"></i>
          <h3>找回密码成功</h3>
        </div>
        
        <div class="form-steps">
          
          <div class="step current" id="step-1">
            <div class="form-group">
              <div class="input-group">
                <div class="input-group-addon">
                  <i class="entypo-mobile"></i>
                </div>
                
                <input type="text" class="form-control" name="mobile" id="inputmobile" placeholder="手机号" autocomplete="off" />
              </div>
            </div>
            
            <div class="form-group">
              <div class="input-group col-sm-6" >
                <div class="input-group-addon">
                  <i class="entypo-layer.msg"></i>
                </div>
               <input type="text"  name="yzm" class="form-control" id="yzm" placeholder="验证码"> 

              </div>
              <button type="button" id="getcodes" class="btn btn-primary" style="height:40px" onclick="get_mobile_valid();">点击获取</button>
            </div>
            <div class="form-group">
          
          <div class="input-group">
            <div class="input-group-addon">
              <i class="entypo-key"></i>
            </div>
            
            <input type="password" class="form-control" name="password" id="password" placeholder="密码" autocomplete="off" />
          </div>
        
        </div>
        <div class="form-group">
          
          <div class="input-group">
            <div class="input-group-addon">
              <i class="entypo-key"></i>
            </div>
            
            <input type="password" class="form-control" name="password2" id="password2" placeholder="确认密码" autocomplete="off" />
          </div>
        
        </div>
            
            <div class="form-group">
  
              <button type="submit" data-step="step-2" class="btn btn-primary btn-block btn-login">
                <i class="entypo-right-open-mini"></i>
               提交
              </button>
            </div>
          </div>
        </div>
        
      </form>
      
      
      <div class="login-bottom-links">
        
        <a href="login.html" class="link">
          <i class="entypo-lock"></i>
         返回登录
        </a>
        
        <br />
        
        <a href="#">润龙国际</a>
        
      </div>
      
    </div>
    
  </div>
  
</div>


  <!-- Bottom scripts (common) -->
  <script src="__PUBLIC__/assets/js/gsap/main-gsap.js"></script>
  <script src="__PUBLIC__/assets/js/jquery-ui/js/jquery-ui-1.10.3.minimal.min.js"></script>
  <script src="__PUBLIC__/assets/js/bootstrap.js"></script>
  <script src="__PUBLIC__/assets/js/joinable.js"></script>
  <script src="__PUBLIC__/assets/js/resizeable.js"></script>
  <script src="__PUBLIC__/assets/js/neon-api.js"></script>
  <script src="__PUBLIC__/assets/js/jquery.validate.min.js"></script>
  <script src="__PUBLIC__/assets/js/neon-fogetpass.js"></script>
  <script src="__PUBLIC__/assets/js/jquery.inputmask.bundle.min.js"></script>
  <!-- JavaScripts initializations and stuff -->
  <script src="__PUBLIC__/assets/js/neon-custom.js"></script>

  <!-- Demo Settings -->
  <script src="__PUBLIC__/assets/js/jquery-1.11.0.min.js"></script>
<script src="__PUBLIC__/Common/layer/layer.js"></script>
  <script>
  function get_mobile_valid() {

  $("#inputmobile").blur();
  var mobile = $('#inputmobile').val();
        var yzm=$('#yzm').val();
        if (mobile==""){
            var msg="请输入手机号";
            layer.msg(msg);
            return;
        }

 $.post('__CONTROLLER__/checkregister', {mobile:mobile}, function (result) {

    if (result == 'true') {
       $.post('__CONTROLLER__/sms_valid_code', {m:mobile,t:yzm}, function (result) {
    $('#inputmobile').blur();
    var msg='';
    if (result == -1) {
      msg='您的手机号码无效';
    } else if (result >= 1) {
      msg='您的手机验证码已经发送到手机，请注意查收';
      var sec=61,ab;
            window.clearInterval(ab);
            ab = setInterval(function(){ 
                sec--;
                $('#getcodes').text(sec + ' 秒后重发').css({'background-color':'#fff','color':'#555','cursor':'no-drop'}).attr('disabled',true);
                if(sec == 0){ 
                    window.clearInterval(ab);
                    $('#getcodes').text('点击获取').attr('disabled',false);
                }
                
            },1000);
    } else{
      msg='处理异常,请稍候重试或联系我们.';
    }
    layer.msg(msg);
  })
    } 

  })

       
 
}
</script>
</body>
</html>